package com.fit.piris.dao.fanpage;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.piris.entities.fanpage.FanPage;

public interface FanPageDAO {

	@CommitAfter
	public boolean save(FanPage fanPage);

	@CommitAfter
	public boolean delete(FanPage fanPage);

	@CommitAfter
	public boolean update(FanPage fanPage);

	@CommitAfter
	public boolean deleteByID(Long id);

	public FanPage findByID(Long id);

	public List<FanPage> findAll();

	public List<FanPage> findByName(String name);

}
